Pattern Density